package factory_method_pattern.v1;

/**
 * 客户端主类
 * @author ricejson
 */
public class Main {
    public static void main(String[] args) {
        // 客户端必须明确具体实例化的类
        Operation operation = new AddFactory().getOperation();
        operation.setNumA(2);
        operation.setNumB(3);
        System.out.println(operation.getResult());
    }
}
